package com.zbxx.webservice;

import com.zbxx.webservice.api.HelloServiceImpl;
import org.apache.cxf.jaxws.JaxWsServerFactoryBean;

/**
 * @author 万仁杰
 * @date 2019/06/10
 */
public class WebServiceServer {


    public static void main(String[] args) {
        JaxWsServerFactoryBean serverFactoryBean = new JaxWsServerFactoryBean();
        serverFactoryBean.setAddress("http://localhost:8888/webservice/hello");
        serverFactoryBean.setServiceBean(new HelloServiceImpl());
        serverFactoryBean.create();
    }



}
